
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>悬浮窗接口 · EasyClick开发文档</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../zk-agent.html" />
    
    
    <link rel="prev" href="zk-global-notice.html" />
    

    
        <link rel="shortcut icon" href="/zh-cn/images/ico.png" type="image/x-icon">
    
    
    
    
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="/zh-cn/images/ico.png">
    
    
        
    
    
        
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../../">
            
                <a href="../../../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../../features.html">
            
                <a href="../../features.html">
            
                    
                    特性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../../changelog.html">
            
                <a href="../../changelog.html">
            
                    
                    更改记录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../../getting-start.html">
            
                <a href="../../getting-start.html">
            
                    
                    开始
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <a target="_blank" href="https://www.bilibili.com/video/bv1W54y1Q7JG">
            
                    
                    视频教程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../../funcs/devtools/dev-tools.html">
            
                <a href="../../funcs/devtools/dev-tools.html">
            
                    
                    开发工具介绍
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../../funcs/devtools/dev-tools-install.html">
            
                <a href="../../funcs/devtools/dev-tools-install.html">
            
                    
                    安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../../funcs/devtools/dev-tools-project.html">
            
                <a href="../../funcs/devtools/dev-tools-project.html">
            
                    
                    工程相关
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../../funcs/devtools/dev-tools-device.html">
            
                <a href="../../funcs/devtools/dev-tools-device.html">
            
                    
                    设备相关
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../../funcs/devtools/dev-tools-screen.html">
            
                <a href="../../funcs/devtools/dev-tools-screen.html">
            
                    
                    屏幕相关
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../../funcs/devtools/dev-tools-settings.html">
            
                <a href="../../funcs/devtools/dev-tools-settings.html">
            
                    
                    设置
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../../funcs.html">
            
                <a href="../../funcs.html">
            
                    
                    功能函数
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../../funcs/global/global.html">
            
                <a href="../../funcs/global/global.html">
            
                    
                    全局模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../../funcs/global/global-shortcut.html">
            
                <a href="../../funcs/global/global-shortcut.html">
            
                    
                    全局快捷事件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../../funcs/global/selector-node.html">
            
                <a href="../../funcs/global/selector-node.html">
            
                    
                    选择器&节点
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../../funcs/acevent-api.html">
            
                <a href="../../funcs/acevent-api.html">
            
                    
                    无障碍事件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="../../funcs/event-api.html">
            
                <a href="../../funcs/event-api.html">
            
                    
                    代理事件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6" data-path="../../funcs/image-api.html">
            
                <a href="../../funcs/image-api.html">
            
                    
                    图色函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.7" data-path="../../funcs/device-api.html">
            
                <a href="../../funcs/device-api.html">
            
                    
                    设备函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.8" data-path="../../funcs/file-api.html">
            
                <a href="../../funcs/file-api.html">
            
                    
                    文件函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.9" data-path="../../funcs/http-api.html">
            
                <a href="../../funcs/http-api.html">
            
                    
                    网络函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.10" data-path="../../funcs/thread-api.html">
            
                <a href="../../funcs/thread-api.html">
            
                    
                    线程函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.11" data-path="../../funcs/utils-api.html">
            
                <a href="../../funcs/utils-api.html">
            
                    
                    常用工具函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.12" data-path="../../funcs/shell-api.html">
            
                <a href="../../funcs/shell-api.html">
            
                    
                    Shell命令函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.13" data-path="../../funcs/sqlite-api.html">
            
                <a href="../../funcs/sqlite-api.html">
            
                    
                    Sqlite命令函数
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../../funcs/ui-custom.html">
            
                <a href="../../funcs/ui-custom.html">
            
                    
                    原生UI定制
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../../funcs/ui-js-inter.html">
            
                <a href="../../funcs/ui-js-inter.html">
            
                    
                    JS编写UI
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../../funcs/ui-js-template.html">
            
                <a href="../../funcs/ui-js-template.html">
            
                    
                    模板式UI
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../../funcs/ui-native-view.html">
            
                <a href="../../funcs/ui-native-view.html">
            
                    
                    原生UI控件
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.3.1" data-path="../../funcs/ui/linearlayout.html">
            
                <a href="../../funcs/ui/linearlayout.html">
            
                    
                    LinearLayout线性布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.2" data-path="../../funcs/ui/framelayout.html">
            
                <a href="../../funcs/ui/framelayout.html">
            
                    
                    FrameLayout帧布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.3" data-path="../../funcs/ui/relativelayout.html">
            
                <a href="../../funcs/ui/relativelayout.html">
            
                    
                    RelativeLayout绝对布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.4" data-path="../../funcs/ui/scrollview.html">
            
                <a href="../../funcs/ui/scrollview.html">
            
                    
                    ScrollView滚动框
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.5" data-path="../../funcs/ui/view.html">
            
                <a href="../../funcs/ui/view.html">
            
                    
                    View视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.6" data-path="../../funcs/ui/button.html">
            
                <a href="../../funcs/ui/button.html">
            
                    
                    Button按钮
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.7" data-path="../../funcs/ui/textview.html">
            
                <a href="../../funcs/ui/textview.html">
            
                    
                    TextView文本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.8" data-path="../../funcs/ui/edittext.html">
            
                <a href="../../funcs/ui/edittext.html">
            
                    
                    EditText输入框
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.9" data-path="../../funcs/ui/checkbox.html">
            
                <a href="../../funcs/ui/checkbox.html">
            
                    
                    CheckBox复选框
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.10" data-path="../../funcs/ui/radiogroup.html">
            
                <a href="../../funcs/ui/radiogroup.html">
            
                    
                    RadioGroup布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.11" data-path="../../funcs/ui/radiobutton.html">
            
                <a href="../../funcs/ui/radiobutton.html">
            
                    
                    RadioButton单选框
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.12" data-path="../../funcs/ui/spinner.html">
            
                <a href="../../funcs/ui/spinner.html">
            
                    
                    Spinner下拉选择框
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.13" data-path="../../funcs/ui/webview.html">
            
                <a href="../../funcs/ui/webview.html">
            
                    
                    WebView内嵌浏览器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.14" data-path="../../funcs/ui/imageview.html">
            
                <a href="../../funcs/ui/imageview.html">
            
                    
                    ImageView图像
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.15" data-path="../../funcs/ui/cardview.html">
            
                <a href="../../funcs/ui/cardview.html">
            
                    
                    CardView卡片布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3.16" data-path="../../funcs/ui/switch.html">
            
                <a href="../../funcs/ui/switch.html">
            
                    
                    Swtich开关按钮
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../../funcs/html-ui-custom.html">
            
                <a href="../../funcs/html-ui-custom.html">
            
                    
                    H5 UI定制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../../hot-update.html">
            
                <a href="../../hot-update.html">
            
                    
                    热更新功能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../zk.html">
            
                <a href="../zk.html">
            
                    
                    企业版中控接口
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../zk-ec-state.html">
            
                <a href="../zk-ec-state.html">
            
                    
                    EC状态控制接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="../zk-node.html">
            
                <a href="../zk-node.html">
            
                    
                    全局节点模块接口
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.2.1" data-path="zk-global-log.html">
            
                <a href="zk-global-log.html">
            
                    
                    日志接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.2" data-path="zk-node-service.html">
            
                <a href="zk-node-service.html">
            
                    
                    节点服务接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.3" data-path="zk-global-click.html">
            
                <a href="zk-global-click.html">
            
                    
                    点击动作接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.4" data-path="zk-global-multitouch.html">
            
                <a href="zk-global-multitouch.html">
            
                    
                    多点触摸动作接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.5" data-path="zk-global-swipe.html">
            
                <a href="zk-global-swipe.html">
            
                    
                    滑动动作接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.6" data-path="zk-global-drag.html">
            
                <a href="zk-global-drag.html">
            
                    
                    拖动动作接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.7" data-path="zk-global-input.html">
            
                <a href="zk-global-input.html">
            
                    
                    输入动作接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.8" data-path="zk-global-node.html">
            
                <a href="zk-global-node.html">
            
                    
                    节点操作接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.9" data-path="zk-global-systemkey.html">
            
                <a href="zk-global-systemkey.html">
            
                    
                    系统按键接口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2.10" data-path="zk-global-notice.html">
            
                <a href="zk-global-notice.html">
            
                    
                    通知栏接口
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.11.2.11" data-path="zk-global-floatview.html">
            
                <a href="zk-global-floatview.html">
            
                    
                    悬浮窗接口
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11.3" data-path="../zk-agent.html">
            
                <a href="../zk-agent.html">
            
                    
                    代理事件模块接口 - 开发中
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.4" data-path="../zk-image.html">
            
                <a href="../zk-image.html">
            
                    
                    图色模块接口 - 开发中
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.5" data-path="../zk-device.md">
            
                <span>
            
                    
                    设备模块接口 - 开发中
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.6" data-path="../zk-file.md">
            
                <span>
            
                    
                    文件模块接口 - 开发中
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.7" data-path="../zk-http.md">
            
                <span>
            
                    
                    网络模块接口 - 开发中
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.8" data-path="../zk-utils.md">
            
                <span>
            
                    
                    常用工具模块接口 - 开发中
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.9" data-path="../zk-shell.md">
            
                <span>
            
                    
                    Shell命令模块接口 - 开发中
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.10" data-path="../zk-sqlite.md">
            
                <span>
            
                    
                    Sqlite模块接口 - 开发中
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../../funcs/plugin/plugins.html">
            
                <a href="../../funcs/plugin/plugins.html">
            
                    
                    插件开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../../question-answer.html">
            
                <a href="../../question-answer.html">
            
                    
                    常见问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../../agreement.html">
            
                <a href="../../agreement.html">
            
                    
                    用户协议
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../../declare.html">
            
                <a href="../../declare.html">
            
                    
                    免责声明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16" >
            
                <span>
            
                    
                    技术交流 QQ群：777164022
            
                </span>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../.." >悬浮窗接口</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><li><span class="title-icon "></span><a href="#&#x60AC;&#x6D6E;&#x7A97;&#x63A5;&#x53E3;"><b>1. </b>&#x60AC;&#x6D6E;&#x7A97;&#x63A5;&#x53E3;</a></li><ul><li><span class="title-icon "></span><a href="#hasfloatviewpermission-&#x68C0;&#x67E5;&#x662F;&#x5426;&#x542B;&#x6709;&#x6D6E;&#x7A97;&#x6743;&#x9650;"><b>1.1. </b>hasFloatViewPermission &#x68C0;&#x67E5;&#x662F;&#x5426;&#x542B;&#x6709;&#x6D6E;&#x7A97;&#x6743;&#x9650;</a></li><li><span class="title-icon "></span><a href="#requestfloatviewpermission-&#x8BF7;&#x6C42;&#x5C55;&#x793A;&#x6D6E;&#x7A97;&#x7684;&#x6743;&#x9650;"><b>1.2. </b>requestFloatViewPermission &#x8BF7;&#x6C42;&#x5C55;&#x793A;&#x6D6E;&#x7A97;&#x7684;&#x6743;&#x9650;</a></li><li><span class="title-icon "></span><a href="#showfloatview-&#x5C55;&#x793A;&#x6D6E;&#x7A97;"><b>1.3. </b>showFloatView &#x5C55;&#x793A;&#x6D6E;&#x7A97;</a></li><li><span class="title-icon "></span><a href="#closefloatview-&#x5173;&#x95ED;&#x6D6E;&#x7A97;"><b>1.4. </b>closeFloatView &#x5173;&#x95ED;&#x6D6E;&#x7A97;</a></li><li><span class="title-icon "></span><a href="#closeallfloatview-&#x5173;&#x95ED;&#x6240;&#x6709;&#x60AC;&#x6D6E;&#x7A97;"><b>1.5. </b>closeAllFloatView &#x5173;&#x95ED;&#x6240;&#x6709;&#x60AC;&#x6D6E;&#x7A97;</a></li><li><span class="title-icon "></span><a href="#showlogwindow-&#x5C55;&#x793A;&#x65E5;&#x5FD7;&#x6D6E;&#x7A97;"><b>1.6. </b>showLogWindow &#x5C55;&#x793A;&#x65E5;&#x5FD7;&#x6D6E;&#x7A97;</a></li><li><span class="title-icon "></span><a href="#closelogwindow-&#x5173;&#x95ED;&#x65E5;&#x5FD7;&#x6D6E;&#x7A97;"><b>1.7. </b>closeLogWindow &#x5173;&#x95ED;&#x65E5;&#x5FD7;&#x6D6E;&#x7A97;</a></li><li><span class="title-icon "></span><a href="#setlogviewsize-&#x8BBE;&#x7F6E;&#x65E5;&#x5FD7;&#x7A97;&#x53E3;&#x5927;&#x5C0F;"><b>1.8. </b>setLogViewSize &#x8BBE;&#x7F6E;&#x65E5;&#x5FD7;&#x7A97;&#x53E3;&#x5927;&#x5C0F;</a></li><li><span class="title-icon "></span><a href="#setlogtext-&#x5C55;&#x793A;&#x6D88;&#x606F;&#x5230;&#x60AC;&#x6D6E;&#x7A97;&#x65E5;&#x5FD7;"><b>1.9. </b>setLogText &#x5C55;&#x793A;&#x6D88;&#x606F;&#x5230;&#x60AC;&#x6D6E;&#x7A97;&#x65E5;&#x5FD7;</a></li><li><span class="title-icon "></span><a href="#setalllogend-&#x7ED3;&#x675F;&#x6240;&#x6709;&#x65E5;&#x5FD7;&#x5C55;&#x793A;"><b>1.10. </b>setAllLogEnd &#x7ED3;&#x675F;&#x6240;&#x6709;&#x65E5;&#x5FD7;&#x5C55;&#x793A;</a></li></ul></ul></div><a href="#&#x60AC;&#x6D6E;&#x7A97;&#x63A5;&#x53E3;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="&#x60AC;&#x6D6E;&#x7A97;&#x63A5;&#x53E3;"><a name="&#x60AC;&#x6D6E;&#x7A97;&#x63A5;&#x53E3;" class="anchor-navigation-ex-anchor" href="#&#x60AC;&#x6D6E;&#x7A97;&#x63A5;&#x53E3;"><i class="fa fa-link" aria-hidden="true"></i></a>1. &#x60AC;&#x6D6E;&#x7A97;&#x63A5;&#x53E3;</h1>
<h2 id="hasfloatviewpermission-&#x68C0;&#x67E5;&#x662F;&#x5426;&#x542B;&#x6709;&#x6D6E;&#x7A97;&#x6743;&#x9650;"><a name="hasfloatviewpermission-&#x68C0;&#x67E5;&#x662F;&#x5426;&#x542B;&#x6709;&#x6D6E;&#x7A97;&#x6743;&#x9650;" class="anchor-navigation-ex-anchor" href="#hasfloatviewpermission-&#x68C0;&#x67E5;&#x662F;&#x5426;&#x542B;&#x6709;&#x6D6E;&#x7A97;&#x6743;&#x9650;"><i class="fa fa-link" aria-hidden="true"></i></a>1.1. hasFloatViewPermission &#x68C0;&#x67E5;&#x662F;&#x5426;&#x542B;&#x6709;&#x6D6E;&#x7A97;&#x6743;&#x9650;</h2>
<ul>
<li><p>&#x68C0;&#x67E5;&#x662F;&#x5426;&#x542B;&#x6709;&#x6D6E;&#x7A97;&#x6743;&#x9650;</p>
</li>
<li><p>@return &#x5E03;&#x5C14;&#x578B; true &#x4EE3;&#x8868;&#x4FDD;&#x5B58;&#xFF0C;false&#x4EE3;&#x8868;&#x4E0D;&#x4FDD;&#x5B58;</p>
</li>
</ul>
<blockquote>
<pre><code class="lang-javascript">    <span class="hljs-keyword">var</span> request = <span class="hljs-built_in">require</span>(<span class="hljs-string">&apos;request&apos;</span>);
    <span class="hljs-keyword">var</span> url=<span class="hljs-string">&quot;http://127.0.0.1:20391/global&quot;</span>;
    <span class="hljs-keyword">var</span> p = {
                 <span class="hljs-string">&quot;type&quot;</span>:<span class="hljs-string">&quot;hasFloatViewPermission&quot;</span>
             };
    <span class="hljs-keyword">var</span> data = <span class="hljs-built_in">JSON</span>.stringify(p);
    request({
              url: url,
              method: <span class="hljs-string">&quot;POST&quot;</span>,
              json: <span class="hljs-literal">true</span>,
              headers: {
                 <span class="hljs-string">&quot;content-type&quot;</span>: <span class="hljs-string">&quot;application/json&quot;</span>,
              },
             body: data
          }, <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">error, response, body</span>) </span>{
              <span class="hljs-keyword">if</span> (!error &amp;&amp; response.statusCode == <span class="hljs-number">200</span>) {
                  <span class="hljs-built_in">console</span>.log(body) 
          }
}
</code></pre>
</blockquote>
<h2 id="requestfloatviewpermission-&#x8BF7;&#x6C42;&#x5C55;&#x793A;&#x6D6E;&#x7A97;&#x7684;&#x6743;&#x9650;"><a name="requestfloatviewpermission-&#x8BF7;&#x6C42;&#x5C55;&#x793A;&#x6D6E;&#x7A97;&#x7684;&#x6743;&#x9650;" class="anchor-navigation-ex-anchor" href="#requestfloatviewpermission-&#x8BF7;&#x6C42;&#x5C55;&#x793A;&#x6D6E;&#x7A97;&#x7684;&#x6743;&#x9650;"><i class="fa fa-link" aria-hidden="true"></i></a>1.2. requestFloatViewPermission &#x8BF7;&#x6C42;&#x5C55;&#x793A;&#x6D6E;&#x7A97;&#x7684;&#x6743;&#x9650;</h2>
<ul>
<li><p>&#x8BF7;&#x6C42;&#x5C55;&#x793A;&#x6D6E;&#x7A97;&#x7684;&#x6743;&#x9650;</p>
</li>
<li><p>@param timeout &#x8D85;&#x65F6;&#x65F6;&#x95F4;&#xFF0C;&#x5355;&#x4F4D;&#x6BEB;&#x79D2;</p>
</li>
<li>@return &#x5E03;&#x5C14;&#x578B; true &#x4EE3;&#x8868;&#x4FDD;&#x5B58;&#xFF0C;false&#x4EE3;&#x8868;&#x4E0D;&#x4FDD;&#x5B58;</li>
</ul>
<blockquote>
<pre><code class="lang-javascript">    <span class="hljs-keyword">var</span> request = <span class="hljs-built_in">require</span>(<span class="hljs-string">&apos;request&apos;</span>);
    <span class="hljs-keyword">var</span> url=<span class="hljs-string">&quot;http://127.0.0.1:20391/global&quot;</span>;
    <span class="hljs-keyword">var</span> p = {
                 <span class="hljs-string">&quot;type&quot;</span>:<span class="hljs-string">&quot;requestFloatViewPermission&quot;</span>,
                  <span class="hljs-string">&quot;timeout&quot;</span>:<span class="hljs-number">10000</span>,
             };
    <span class="hljs-keyword">var</span> data = <span class="hljs-built_in">JSON</span>.stringify(p);
    request({
              url: url,
              method: <span class="hljs-string">&quot;POST&quot;</span>,
              json: <span class="hljs-literal">true</span>,
              headers: {
                 <span class="hljs-string">&quot;content-type&quot;</span>: <span class="hljs-string">&quot;application/json&quot;</span>,
              },
             body: data
          }, <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">error, response, body</span>) </span>{
              <span class="hljs-keyword">if</span> (!error &amp;&amp; response.statusCode == <span class="hljs-number">200</span>) {
                  <span class="hljs-built_in">console</span>.log(body) 
          }
}
</code></pre>
</blockquote>
<h2 id="showfloatview-&#x5C55;&#x793A;&#x6D6E;&#x7A97;"><a name="showfloatview-&#x5C55;&#x793A;&#x6D6E;&#x7A97;" class="anchor-navigation-ex-anchor" href="#showfloatview-&#x5C55;&#x793A;&#x6D6E;&#x7A97;"><i class="fa fa-link" aria-hidden="true"></i></a>1.3. showFloatView &#x5C55;&#x793A;&#x6D6E;&#x7A97;</h2>
<ul>
<li><p>&#x5C55;&#x793A;&#x6D6E;&#x7A97;</p>
</li>
<li><p>@param params js&#x7684;map&#x5BF9;&#x8C61;&#xFF0C;&#x5305;&#x542B;&#x7684;</p>
<ul>
<li>var map = {&quot;path&quot;:&quot;main.html&quot;,&quot;tag&quot;:&quot;test&quot;}; &#x7C7B;&#x4F3C;&#x8FD9;&#x6837;&#x7684;&#x53C2;&#x6570;</li>
<li>&#x53C2;&#x6570;&#x89E3;&#x6790;:</li>
<li>tag:&#x5B57;&#x7B26;&#x4E32; &#x60AC;&#x6D6E;&#x7A97;&#x552F;&#x4E00;&#x5B9A;&#x4F4D;&#x7684;&#x6807;&#x793A;</li>
<li>path:&#x5B57;&#x7B26;&#x4E32; IEC &#x4E2D;&#x7684;&#x5E03;&#x5C40;&#x6587;&#x4EF6;</li>
<li>title:&#x5B57;&#x7B26;&#x4E32; &#x60AC;&#x6D6E;&#x7A97;&#x6807;&#x9898;</li>
<li>titleBg:&#x5B57;&#x7B26;&#x4E32; &#x60AC;&#x6D6E;&#x7A97;&#x80CC;&#x666F;&#xFF0C;16&#x8FDB;&#x5236;&#xFF0C;&#x4F8B;&#x5982;#888888&#xFF0C;&#x6216;&#x8005;#88000000</li>
<li>x:&#x6574;&#x578B; &#x60AC;&#x6D6E;&#x7A97;&#x8D77;&#x59CB;X&#x5750;&#x6807;</li>
<li>y:&#x6574;&#x578B; &#x60AC;&#x6D6E;&#x7A97;&#x8D77;&#x59CB;Y&#x5750;&#x6807;</li>
<li>w:&#x6574;&#x578B; &#x60AC;&#x6D6E;&#x7A97;&#x8D77;&#x59CB;&#x5BBD;&#x5EA6;</li>
<li>h:&#x6574;&#x578B; &#x60AC;&#x6D6E;&#x7A97;&#x8D77;&#x59CB;&#x9AD8;&#x5EA6;</li>
</ul>
</li>
<li>@return &#x5E03;&#x5C14;&#x578B; true &#x4EE3;&#x8868;&#x4FDD;&#x5B58;&#xFF0C;false&#x4EE3;&#x8868;&#x4E0D;&#x4FDD;&#x5B58;</li>
</ul>
<blockquote>
<pre><code class="lang-javascript">    <span class="hljs-keyword">var</span> request = <span class="hljs-built_in">require</span>(<span class="hljs-string">&apos;request&apos;</span>);
    <span class="hljs-keyword">var</span> url=<span class="hljs-string">&quot;http://127.0.0.1:20391/global&quot;</span>;
    <span class="hljs-keyword">var</span> p = {
                 <span class="hljs-string">&quot;type&quot;</span>:<span class="hljs-string">&quot;showFloatView&quot;</span>,
                  <span class="hljs-string">&quot;params&quot;</span>:{
                                   <span class="hljs-string">&quot;path&quot;</span>: <span class="hljs-string">&quot;main.html&quot;</span>,
                                   <span class="hljs-string">&quot;tag&quot;</span>: <span class="hljs-string">&quot;tag&quot;</span>,
                                   <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;sss&quot;</span>,
                                  <span class="hljs-string">&quot;titleBg&quot;</span>: <span class="hljs-string">&quot;#888888&quot;</span>,
                                   <span class="hljs-string">&quot;x&quot;</span>: <span class="hljs-number">10</span>,
                                   <span class="hljs-string">&quot;y&quot;</span>: <span class="hljs-number">10</span>,
                                   <span class="hljs-string">&quot;w&quot;</span>: <span class="hljs-number">100</span>,
                                   <span class="hljs-string">&quot;h&quot;</span>: <span class="hljs-number">200</span>
                               }
             };
    <span class="hljs-keyword">var</span> data = <span class="hljs-built_in">JSON</span>.stringify(p);
    request({
              url: url,
              method: <span class="hljs-string">&quot;POST&quot;</span>,
              json: <span class="hljs-literal">true</span>,
              headers: {
                 <span class="hljs-string">&quot;content-type&quot;</span>: <span class="hljs-string">&quot;application/json&quot;</span>,
              },
             body: data
          }, <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">error, response, body</span>) </span>{
              <span class="hljs-keyword">if</span> (!error &amp;&amp; response.statusCode == <span class="hljs-number">200</span>) {
                  <span class="hljs-built_in">console</span>.log(body) 
          }
}
</code></pre>
</blockquote>
<h2 id="closefloatview-&#x5173;&#x95ED;&#x6D6E;&#x7A97;"><a name="closefloatview-&#x5173;&#x95ED;&#x6D6E;&#x7A97;" class="anchor-navigation-ex-anchor" href="#closefloatview-&#x5173;&#x95ED;&#x6D6E;&#x7A97;"><i class="fa fa-link" aria-hidden="true"></i></a>1.4. closeFloatView &#x5173;&#x95ED;&#x6D6E;&#x7A97;</h2>
<ul>
<li>&#x5173;&#x95ED;&#x6D6E;&#x7A97;</li>
<li>@param tag showFloatView &#x4F7F;&#x7528;&#x7684;tag&#x53C2;&#x6570;&#xFF0C;&#x5BF9;&#x60AC;&#x6D6E;&#x7A97;&#x552F;&#x4E00;&#x5B9A;&#x4F4D;&#x7684;</li>
<li>@return &#x5E03;&#x5C14;&#x578B; true &#x4EE3;&#x8868;&#x4FDD;&#x5B58;&#xFF0C;false&#x4EE3;&#x8868;&#x4E0D;&#x4FDD;&#x5B58;</li>
</ul>
<blockquote>
<pre><code class="lang-javascript">    <span class="hljs-keyword">var</span> request = <span class="hljs-built_in">require</span>(<span class="hljs-string">&apos;request&apos;</span>);
    <span class="hljs-keyword">var</span> url=<span class="hljs-string">&quot;http://127.0.0.1:20391/global&quot;</span>;
    <span class="hljs-keyword">var</span> p = {
                 <span class="hljs-string">&quot;type&quot;</span>:<span class="hljs-string">&quot;closeFloatView&quot;</span>,
                <span class="hljs-string">&quot;tag&quot;</span>: <span class="hljs-string">&quot;tag&quot;</span>
             };
    <span class="hljs-keyword">var</span> data = <span class="hljs-built_in">JSON</span>.stringify(p);
    request({
              url: url,
              method: <span class="hljs-string">&quot;POST&quot;</span>,
              json: <span class="hljs-literal">true</span>,
              headers: {
                 <span class="hljs-string">&quot;content-type&quot;</span>: <span class="hljs-string">&quot;application/json&quot;</span>,
              },
             body: data
          }, <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">error, response, body</span>) </span>{
              <span class="hljs-keyword">if</span> (!error &amp;&amp; response.statusCode == <span class="hljs-number">200</span>) {
                  <span class="hljs-built_in">console</span>.log(body) 
          }
}
</code></pre>
</blockquote>
<h2 id="closeallfloatview-&#x5173;&#x95ED;&#x6240;&#x6709;&#x60AC;&#x6D6E;&#x7A97;"><a name="closeallfloatview-&#x5173;&#x95ED;&#x6240;&#x6709;&#x60AC;&#x6D6E;&#x7A97;" class="anchor-navigation-ex-anchor" href="#closeallfloatview-&#x5173;&#x95ED;&#x6240;&#x6709;&#x60AC;&#x6D6E;&#x7A97;"><i class="fa fa-link" aria-hidden="true"></i></a>1.5. closeAllFloatView &#x5173;&#x95ED;&#x6240;&#x6709;&#x60AC;&#x6D6E;&#x7A97;</h2>
<ul>
<li>&#x5173;&#x95ED;&#x6240;&#x6709;&#x60AC;&#x6D6E;&#x7A97;&#xFF0C;&#x4F46;&#x4E0D;&#x5305;&#x542B;&#x65E5;&#x5FD7;&#x60AC;&#x6D6E;&#x7A97;</li>
<li>@param tag showFloatView &#x4F7F;&#x7528;&#x7684;tag&#x53C2;&#x6570;&#xFF0C;&#x5BF9;&#x60AC;&#x6D6E;&#x7A97;&#x552F;&#x4E00;&#x5B9A;&#x4F4D;&#x7684;</li>
<li>@return &#x5E03;&#x5C14;&#x578B; true &#x4EE3;&#x8868;&#x4FDD;&#x5B58;&#xFF0C;false&#x4EE3;&#x8868;&#x4E0D;&#x4FDD;&#x5B58;</li>
</ul>
<blockquote>
<pre><code class="lang-javascript">    <span class="hljs-keyword">var</span> request = <span class="hljs-built_in">require</span>(<span class="hljs-string">&apos;request&apos;</span>);
    <span class="hljs-keyword">var</span> url=<span class="hljs-string">&quot;http://127.0.0.1:20391/global&quot;</span>;
    <span class="hljs-keyword">var</span> p = {
                 <span class="hljs-string">&quot;type&quot;</span>:<span class="hljs-string">&quot;closeAllFloatView&quot;</span>
             };
    <span class="hljs-keyword">var</span> data = <span class="hljs-built_in">JSON</span>.stringify(p);
    request({
              url: url,
              method: <span class="hljs-string">&quot;POST&quot;</span>,
              json: <span class="hljs-literal">true</span>,
              headers: {
                 <span class="hljs-string">&quot;content-type&quot;</span>: <span class="hljs-string">&quot;application/json&quot;</span>,
              },
             body: data
          }, <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">error, response, body</span>) </span>{
              <span class="hljs-keyword">if</span> (!error &amp;&amp; response.statusCode == <span class="hljs-number">200</span>) {
                  <span class="hljs-built_in">console</span>.log(body) 
          }
}
</code></pre>
</blockquote>
<h2 id="showlogwindow-&#x5C55;&#x793A;&#x65E5;&#x5FD7;&#x6D6E;&#x7A97;"><a name="showlogwindow-&#x5C55;&#x793A;&#x65E5;&#x5FD7;&#x6D6E;&#x7A97;" class="anchor-navigation-ex-anchor" href="#showlogwindow-&#x5C55;&#x793A;&#x65E5;&#x5FD7;&#x6D6E;&#x7A97;"><i class="fa fa-link" aria-hidden="true"></i></a>1.6. showLogWindow &#x5C55;&#x793A;&#x65E5;&#x5FD7;&#x6D6E;&#x7A97;</h2>
<ul>
<li>&#x5C55;&#x793A;&#x65E5;&#x5FD7;&#x6D6E;&#x7A97;</li>
<li>@return &#x5E03;&#x5C14;&#x578B; true &#x4EE3;&#x8868;&#x4FDD;&#x5B58;&#xFF0C;false&#x4EE3;&#x8868;&#x4E0D;&#x4FDD;&#x5B58;</li>
</ul>
<blockquote>
<pre><code class="lang-javascript">    <span class="hljs-keyword">var</span> request = <span class="hljs-built_in">require</span>(<span class="hljs-string">&apos;request&apos;</span>);
    <span class="hljs-keyword">var</span> url=<span class="hljs-string">&quot;http://127.0.0.1:20391/global&quot;</span>;
    <span class="hljs-keyword">var</span> p = {
                 <span class="hljs-string">&quot;type&quot;</span>:<span class="hljs-string">&quot;showLogWindow&quot;</span>
             };
    <span class="hljs-keyword">var</span> data = <span class="hljs-built_in">JSON</span>.stringify(p);
    request({
              url: url,
              method: <span class="hljs-string">&quot;POST&quot;</span>,
              json: <span class="hljs-literal">true</span>,
              headers: {
                 <span class="hljs-string">&quot;content-type&quot;</span>: <span class="hljs-string">&quot;application/json&quot;</span>,
              },
             body: data
          }, <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">error, response, body</span>) </span>{
              <span class="hljs-keyword">if</span> (!error &amp;&amp; response.statusCode == <span class="hljs-number">200</span>) {
                  <span class="hljs-built_in">console</span>.log(body) 
          }
}
</code></pre>
</blockquote>
<h2 id="closelogwindow-&#x5173;&#x95ED;&#x65E5;&#x5FD7;&#x6D6E;&#x7A97;"><a name="closelogwindow-&#x5173;&#x95ED;&#x65E5;&#x5FD7;&#x6D6E;&#x7A97;" class="anchor-navigation-ex-anchor" href="#closelogwindow-&#x5173;&#x95ED;&#x65E5;&#x5FD7;&#x6D6E;&#x7A97;"><i class="fa fa-link" aria-hidden="true"></i></a>1.7. closeLogWindow &#x5173;&#x95ED;&#x65E5;&#x5FD7;&#x6D6E;&#x7A97;</h2>
<ul>
<li>&#x5173;&#x95ED;&#x65E5;&#x5FD7;&#x6D6E;&#x7A97;</li>
<li>@return &#x5E03;&#x5C14;&#x578B; true &#x4EE3;&#x8868;&#x4FDD;&#x5B58;&#xFF0C;false&#x4EE3;&#x8868;&#x4E0D;&#x4FDD;&#x5B58;</li>
</ul>
<blockquote>
<pre><code class="lang-javascript">    <span class="hljs-keyword">var</span> request = <span class="hljs-built_in">require</span>(<span class="hljs-string">&apos;request&apos;</span>);
    <span class="hljs-keyword">var</span> url=<span class="hljs-string">&quot;http://127.0.0.1:20391/global&quot;</span>;
    <span class="hljs-keyword">var</span> p = {
                 <span class="hljs-string">&quot;type&quot;</span>:<span class="hljs-string">&quot;closeLogWindow&quot;</span>
             };
    <span class="hljs-keyword">var</span> data = <span class="hljs-built_in">JSON</span>.stringify(p);
    request({
              url: url,
              method: <span class="hljs-string">&quot;POST&quot;</span>,
              json: <span class="hljs-literal">true</span>,
              headers: {
                 <span class="hljs-string">&quot;content-type&quot;</span>: <span class="hljs-string">&quot;application/json&quot;</span>,
              },
             body: data
          }, <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">error, response, body</span>) </span>{
              <span class="hljs-keyword">if</span> (!error &amp;&amp; response.statusCode == <span class="hljs-number">200</span>) {
                  <span class="hljs-built_in">console</span>.log(body) 
          }
}
</code></pre>
</blockquote>
<h2 id="setlogviewsize-&#x8BBE;&#x7F6E;&#x65E5;&#x5FD7;&#x7A97;&#x53E3;&#x5927;&#x5C0F;"><a name="setlogviewsize-&#x8BBE;&#x7F6E;&#x65E5;&#x5FD7;&#x7A97;&#x53E3;&#x5927;&#x5C0F;" class="anchor-navigation-ex-anchor" href="#setlogviewsize-&#x8BBE;&#x7F6E;&#x65E5;&#x5FD7;&#x7A97;&#x53E3;&#x5927;&#x5C0F;"><i class="fa fa-link" aria-hidden="true"></i></a>1.8. setLogViewSize &#x8BBE;&#x7F6E;&#x65E5;&#x5FD7;&#x7A97;&#x53E3;&#x5927;&#x5C0F;</h2>
<ul>
<li>&#x8BBE;&#x7F6E;&#x65E5;&#x5FD7;&#x7A97;&#x53E3;&#x5927;&#x5C0F;</li>
<li>@param w &#x5BBD;&#x5EA6;</li>
<li>@param h &#x9AD8;&#x5EA6;</li>
<li>@param textSize &#x65E5;&#x5FD7;&#x7684;&#x5B57;&#x4F53;&#x5927;&#x5C0F;</li>
<li>@param backgroundColor &#x80CC;&#x666F;&#x989C;&#x8272;&#xFF0C;&#x4F8B;&#x5982;#336699</li>
<li>@return &#x5E03;&#x5C14;&#x578B; true &#x4EE3;&#x8868;&#x4FDD;&#x5B58;&#xFF0C;false&#x4EE3;&#x8868;&#x4E0D;&#x4FDD;&#x5B58;</li>
</ul>
<blockquote>
<pre><code class="lang-javascript">    <span class="hljs-keyword">var</span> request = <span class="hljs-built_in">require</span>(<span class="hljs-string">&apos;request&apos;</span>);
    <span class="hljs-keyword">var</span> url=<span class="hljs-string">&quot;http://127.0.0.1:20391/global&quot;</span>;
    <span class="hljs-keyword">var</span> p = {
                <span class="hljs-string">&quot;type&quot;</span>:<span class="hljs-string">&quot;setLogViewSize&quot;</span>,
                <span class="hljs-string">&quot;w&quot;</span>:<span class="hljs-number">300</span>,
                <span class="hljs-string">&quot;h&quot;</span>:<span class="hljs-number">400</span>,
                <span class="hljs-string">&quot;textSize&quot;</span>:<span class="hljs-number">14</span>,
                <span class="hljs-string">&quot;backgroundColor&quot;</span>:<span class="hljs-string">&quot;#888888&quot;</span>
             };
    <span class="hljs-keyword">var</span> data = <span class="hljs-built_in">JSON</span>.stringify(p);
    request({
              url: url,
              method: <span class="hljs-string">&quot;POST&quot;</span>,
              json: <span class="hljs-literal">true</span>,
              headers: {
                 <span class="hljs-string">&quot;content-type&quot;</span>: <span class="hljs-string">&quot;application/json&quot;</span>,
              },
             body: data
          }, <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">error, response, body</span>) </span>{
              <span class="hljs-keyword">if</span> (!error &amp;&amp; response.statusCode == <span class="hljs-number">200</span>) {
                  <span class="hljs-built_in">console</span>.log(body) 
          }
}
</code></pre>
</blockquote>
<h2 id="setlogtext-&#x5C55;&#x793A;&#x6D88;&#x606F;&#x5230;&#x60AC;&#x6D6E;&#x7A97;&#x65E5;&#x5FD7;"><a name="setlogtext-&#x5C55;&#x793A;&#x6D88;&#x606F;&#x5230;&#x60AC;&#x6D6E;&#x7A97;&#x65E5;&#x5FD7;" class="anchor-navigation-ex-anchor" href="#setlogtext-&#x5C55;&#x793A;&#x6D88;&#x606F;&#x5230;&#x60AC;&#x6D6E;&#x7A97;&#x65E5;&#x5FD7;"><i class="fa fa-link" aria-hidden="true"></i></a>1.9. setLogText &#x5C55;&#x793A;&#x6D88;&#x606F;&#x5230;&#x60AC;&#x6D6E;&#x7A97;&#x65E5;&#x5FD7;</h2>
<ul>
<li>&#x5C55;&#x793A;&#x6D88;&#x606F;&#x5230;&#x60AC;&#x6D6E;&#x7A97;&#x65E5;&#x5FD7;&#x4E2D;&#xFF0C;&#x989C;&#x8272;&#x662F;&#x767D;&#x8272;&#x7684;</li>
<li>@param msg &#x6D88;&#x606F;</li>
<li>@return &#x5E03;&#x5C14;&#x578B; true &#x4EE3;&#x8868;&#x4FDD;&#x5B58;&#xFF0C;false&#x4EE3;&#x8868;&#x4E0D;&#x4FDD;&#x5B58;</li>
</ul>
<blockquote>
<pre><code class="lang-javascript">    <span class="hljs-keyword">var</span> request = <span class="hljs-built_in">require</span>(<span class="hljs-string">&apos;request&apos;</span>);
    <span class="hljs-keyword">var</span> url=<span class="hljs-string">&quot;http://127.0.0.1:20391/global&quot;</span>;
    <span class="hljs-keyword">var</span> p = {
                 <span class="hljs-string">&quot;type&quot;</span>:<span class="hljs-string">&quot;setLogText&quot;</span>,
                <span class="hljs-string">&quot;msg&quot;</span>: <span class="hljs-string">&quot;msg&quot;</span>
             };
    <span class="hljs-keyword">var</span> data = <span class="hljs-built_in">JSON</span>.stringify(p);
    request({
              url: url,
              method: <span class="hljs-string">&quot;POST&quot;</span>,
              json: <span class="hljs-literal">true</span>,
              headers: {
                 <span class="hljs-string">&quot;content-type&quot;</span>: <span class="hljs-string">&quot;application/json&quot;</span>,
              },
             body: data
          }, <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">error, response, body</span>) </span>{
              <span class="hljs-keyword">if</span> (!error &amp;&amp; response.statusCode == <span class="hljs-number">200</span>) {
                  <span class="hljs-built_in">console</span>.log(body) 
          }
}
</code></pre>
</blockquote>
<h2 id="setalllogend-&#x7ED3;&#x675F;&#x6240;&#x6709;&#x65E5;&#x5FD7;&#x5C55;&#x793A;"><a name="setalllogend-&#x7ED3;&#x675F;&#x6240;&#x6709;&#x65E5;&#x5FD7;&#x5C55;&#x793A;" class="anchor-navigation-ex-anchor" href="#setalllogend-&#x7ED3;&#x675F;&#x6240;&#x6709;&#x65E5;&#x5FD7;&#x5C55;&#x793A;"><i class="fa fa-link" aria-hidden="true"></i></a>1.10. setAllLogEnd &#x7ED3;&#x675F;&#x6240;&#x6709;&#x65E5;&#x5FD7;&#x5C55;&#x793A;</h2>
<ul>
<li>&#x7ED3;&#x675F;&#x6240;&#x6709;&#x65E5;&#x5FD7;&#x5C55;&#x793A;&#xFF0C;&#x6062;&#x590D;&#x60AC;&#x6D6E;&#x7A97;&#x53EF;&#x62D6;&#x52A8;</li>
<li>@return &#x5E03;&#x5C14;&#x578B; true &#x4EE3;&#x8868;&#x4FDD;&#x5B58;&#xFF0C;false&#x4EE3;&#x8868;&#x4E0D;&#x4FDD;&#x5B58;</li>
</ul>
<blockquote>
<pre><code class="lang-javascript">    <span class="hljs-keyword">var</span> request = <span class="hljs-built_in">require</span>(<span class="hljs-string">&apos;request&apos;</span>);
    <span class="hljs-keyword">var</span> url=<span class="hljs-string">&quot;http://127.0.0.1:20391/global&quot;</span>;
    <span class="hljs-keyword">var</span> p = {
                 <span class="hljs-string">&quot;type&quot;</span>:<span class="hljs-string">&quot;setAllLogEnd&quot;</span>
             };
    <span class="hljs-keyword">var</span> data = <span class="hljs-built_in">JSON</span>.stringify(p);
    request({
              url: url,
              method: <span class="hljs-string">&quot;POST&quot;</span>,
              json: <span class="hljs-literal">true</span>,
              headers: {
                 <span class="hljs-string">&quot;content-type&quot;</span>: <span class="hljs-string">&quot;application/json&quot;</span>,
              },
             body: data
          }, <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">error, response, body</span>) </span>{
              <span class="hljs-keyword">if</span> (!error &amp;&amp; response.statusCode == <span class="hljs-number">200</span>) {
                  <span class="hljs-built_in">console</span>.log(body) 
          }
}
</code></pre>
</blockquote>

<script>console.log("plugin-popup....");document.onclick = function(e){ e.target.tagName === "IMG" && window.open(e.target.src,e.target.src)}</script><style>img{cursor:pointer}</style>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="zk-global-notice.html" class="navigation navigation-prev " aria-label="Previous page: 通知栏接口">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../zk-agent.html" class="navigation navigation-next " aria-label="Next page: 代理事件模块接口 - 开发中">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"悬浮窗接口","level":"1.11.2.11","depth":3,"next":{"title":"代理事件模块接口 - 开发中","level":"1.11.3","depth":2,"path":"zh-cn/zk/zk-agent.md","ref":"zh-cn/zk/zk-agent.md","articles":[]},"previous":{"title":"通知栏接口","level":"1.11.2.10","depth":3,"path":"zh-cn/zk/global/zk-global-notice.md","ref":"zh-cn/zk/global/zk-global-notice.md","articles":[]},"dir":"ltr"},"config":{"plugins":["chapter-fold","code","copy-code-button","-lunr","-search","search-pro","anchor-navigation-ex","hide-element","favicon-absolute","popup"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"chapter-fold":{},"search-pro":{},"popup":{},"code":{"copyButtons":true},"favicon-absolute":{"appleTouchIconMore":{},"appleTouchIconPrecomposed152":"/zh-cn/images/ico.png","appleTouchIconPrecomposedMore":{},"favicon":"/zh-cn/images/ico.png"},"hide-element":{"elements":[".gitbook-link"]},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"anchor-navigation-ex":{"associatedWithSummary":true,"float":{"floatIcon":"fa fa-navicon","level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"mode":"float","multipleH1":true,"pageTop":{"level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"printLog":false,"showGoTop":true,"showLevel":true},"copy-code-button":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"EasyClick开发文档","language":"zh-hans","gitbook":"*","description":"记录EasyClick开发教程和常用的函数"},"file":{"path":"zh-cn/zk/global/zk-global-floatview.md","mtime":"2020-04-28T11:58:25.685Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-06-23T14:38:08.296Z"},"basePath":"../../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../../gitbook/gitbook.js"></script>
    <script src="../../../gitbook/theme.js"></script>
    
        
        <script src="../../../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-copy-code-button/toggle.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-hide-element/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

